﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Classes;

namespace Pager {
    public partial class despesa_fonte : System.Web.UI.UserControl {
        protected void Page_Load(object sender, EventArgs e) {
            CarregaGridProcedure();
        }

        private void CarregaGridProcedure() {
            try {
                GridView3.DataSource = Controle.Usuario.GetProcedure();
                GridView3.DataBind();
            }
            catch (Exception ex) {
                throw ex;
            }
        }

        protected void GridViewPageIndexChanging(object sender, GridViewPageEventArgs e) {
            ((GridView)sender).PageIndex = e.NewPageIndex;
            ((GridView)sender).DataBind();

        }


    }
}